<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="stylesheet" href="../assets/stylesheets/comm.css">
    <link rel="stylesheet" href="../assets/stylesheets/foot.css">
</head>
<body>
<!--头部-->
<div class="html_header">
    <a href="../index.html">
        <img src="../assets/images/index/logo.png" class="header_img"/>
    </a>
    <ul class="index_ul">
        <li><a href="../about_bianmingka/about_convenience_card.html">关于便民卡</a></li>
        <li><a>服务指南</a></li>
        <li><a>公众号</a></li>
        <li><a>应用下载</a></li>
        <li><a>商户中心</a></li>
        <li><a href="login.html">个人中心</a></li>
    </ul>
</div>
<!--中心内容-->
<div class="body height_lose personal_body">
    <!-- 个人中心menu -->
    <div class="menu div_float_left personal_menu">
        <ul>
            <li>
                <div class="li"><span class="jiantou_active">个人中心</span></div>
                <ul class="ul_active">
                    <li>
                        <div class="li"><span>我的订单</span></div>
                        <ul class="in_ul">
                            <a href="#">
                                <li>
                                    全部订单
                                </li>
                            </a>
                            <a href="#">
                                <li>
                                    待付款
                                </li>
                            </a>
                            <a href="#">
                                <li>
                                    已完成
                                </li>
                            </a>
                            <a href="#">
                                <li>
                                    已取消
                                </li>
                            </a>
                        </ul>
                    </li>
                    <li>
                        <div class="li"><span class="jiantou_active">生活缴费</span></div>
                        <ul class="in_ul ul_active">
                            <a href="recharge_phone.html">
                                <li>
                                    话费充值
                                </li>
                            </a>
                            <a href="electric/electric_index.html">
                                <li>
                                    电费缴纳
                                </li>
                            </a>
                            <a href="../warm/warm_index.html">
                                <li>
                                    取暖费缴纳
                                </li>
                            </a>
                            <a href="water_index.html" class="active">
                                <li>
                                    水费缴纳
                                </li>
                            </a>
                            <a href="../gas/gas_index.html">
                                <li>
                                    燃气费缴纳
                                </li>
                            </a>
                        </ul>
                    </li>
                </ul>
            </li>

        </ul>
    </div>
    <!-- 水费缴纳content -->
    <div class="life_content">
        <div class="life_header">
            <label class="life_title lt_gray_color large_fontsize">
                <img src="../assets/images/life/1.png" class="promise"/>
                <label class="main_color">品质保证</label>
                <label class="main_color">安全快捷</label>
                <a class="small_fontsize gray_color mar_left">便民卡预约</a>
            </label>
                <a class="div_float_right lt_gray_color" href="reservation_conveninenceCardRecord.html">预约记录</a>
        </div>
        <div>
        <form class="add_water br_div" id="reservarion_form">
            <div class="margin_top_large">
                <label class="large_fontsize input_title">姓名:</label>
                <input placeholder="请输入真实姓名" class="form_input btn_div"/>
            </div>
            <div class="margin_top_large">
                <label class="large_fontsize input_title">身份证号:</label>
                <input placeholder="请输入身份证号码" class="form_input btn_div"/>
            </div>
            <div class="margin_top_large">
                <label class="large_fontsize input_title">办理网点:</label>
                <select class="form_input btn_div">
                    <option>请选择办理网点</option>
                    <option>缴费单位</option>
                    <option>缴费单位</option>
                    <option>缴费单位</option>
                </select>
            </div>
            <div class="margin_top_large">
                <label class="large_fontsize input_title">手机号码:</label>
                <input placeholder="请输入手机号码" class="form_input btn_div"/>
            </div>
            <div class="margin_top_large relative_position reservation_conveninence_div">
                <label class="large_fontsize input_title">短信验证码:</label>
                <input placeholder="请输入短信验证码" class="form_input btn_div" name="code"/>
                <div class="get_mess_btn get_tell_code">获取短信验证码</div>
            </div>
            <input type="submit" value="确认预约" class="form_submit_water margin_top_largemore"/>
        </form>
        </div>
    </div>
</div>
<!--footer-->
<div class="footer">
    <div class="foot_body">
        <div>
            <img src="../../assets/images/foot/wechat.png"/>
            <div class="foot_txt">微信公众号</div>
        </div>
        <div>
            <img src="../../assets/images/foot/app.png"/>
            <div class="foot_txt">APP应用下载</div>
        </div>
        <p>
            嘉峪关，号称“天下第一雄关”，位于甘肃省嘉峪关市西5千米处最狭窄的山谷中部，城关两侧的城墙横穿沙漠戈壁，北连黑山悬壁长城，南接天下第一墩，是明长城最西端的关口，历史上曾被称为河西咽喉，因地势险要，建筑雄伟，有连陲锁钥之称。嘉峪关是古代“丝绸之路”的交通要塞，中国长城三大奇观之一（东有山海关、中有镇北台、西有嘉峪关）。
        </p>
    </div>
    <div class="foot_body">&copy;2012-2018嘉峪关xxxxx公司甘ICP备18043664号-18</div>
</div>
<script src="../assets/javascripts/jquery-1.11.1.min.js"></script>
<script src="../assets/javascripts/index.js"></script>
<script src="../assets/javascripts/jquery.validate.min.js"></script>
<script>
    $("#reservarion_form").validate({
        rules: {
            code: {
                required: true
            },
            phone:{
                required: true,
                isMobile: true
            },
            certno:{
                required: true,
                isIdCardNo: true
            },
            branchid:{
                required: true
            }
        },
        messages: {
            code: {
                required: "请输入您的姓名"
            },
            certno:{
                required: "请输入您的身份证号码"
            },
            branchid:{
                required: "请选择您的办理网点"
            },
            code:{
                required: "请输入验证码"
            },
            phone:{
                required: "请输入正确的手机号码"
            }
        },
        submitHandler: function (form) {
            $.post('/user/reservationCard', $("form").serialize(),
                function (json) {
                    if(json.errorcode == 0){//
                        layer.msg("预约成功");
                        isReal("/user/reservationRecord");
                    }else {
                        layer.msg(json.errormsg)
                    }
                })
        }
    });
</script>
</body>
</html>